package com.qf.ts.platform.commons.pojo;

import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * @author xianchang
 */
@Data
@ToString
public class TableData<T> {

    private Integer code=0;

    private Long count;

    private String msg;

    private List<T> data;

    public TableData() {
    }

    public TableData(Long count, List<T> data) {
        this.count = count;
        this.data = data;
    }

    public TableData(Integer code, Long count, String msg, List<T> data) {
        this.code = code;
        this.count = count;
        this.msg = msg;
        this.data = data;
    }
}